import requests

url = "https://www.baidu.com"

response = requests.get(url)
response.enconding = "utf-8"
print(response.text)